import VueRouter from "vue-router";
import Vue from "vue";
import Home from "@/pages/Home";
import Login from "@/pages/Login";

// 应用路由插件
Vue.use(VueRouter);

// 创建路由器对象，在内部配置路由表
const router = new VueRouter({
    mode: "history",
    routes: [
        { path: "/Home", component: Home },
        { path: "/Login", component: Login },
    ],
});
export default router;
